#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
#include"vector.h"

using namespace sunmingyi;
void test1()
{
	vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);

	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	
	//v.resize(7,5);
	//	for (auto e : v)
	//	{
	//		cout << e << " ";
	//	}
	//cout << endl;

	/*v.insert(v.begin()+1, 0);
	for (auto e : v)
	{
		cout << e << " ";
	}*/

	vector<int>::iterator it = find(v.begin(), v.end(), 3);
	v.erase(it);
	for (auto e : v)
	{
		cout << e << " ";
	}

}
int main()
{
	test1();
	return 0;
}